export default{
    namespaced:true,
    state:{
        collectlist:[]
    },
    getters:{},
    mutations:{
        collect(state,payload){
            state.collectlist.push( payload );
            console.log(this.collectlist);
        },
        cancel_collect(state,payload){
            var index=state.collectlist.findIndex((item)=>{
                return item.mtWmPoiId == payload.mtWmPoiId;
            })
            if( index != -1 ){
                state.collectlist.splice(index,1);
              }
        }
    },
    actions:{}
}